package com.matrix.quartz.hander;

import java.util.Map;

import com.matrix.quartz.contance.QuartzContance;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

import com.matrix.quartz.core.ExtJob;

/**
 * 定时任务测试类
* @author zhangheng
* @email 512061637@qq.com
* @date 2019年1月15日
 */
@Component
public class TestJob extends ExtJob {
	
	@Override
	public boolean executeExt(JobExecutionContext context) {
		
		Map<String, Object> paramMap = context.getMergedJobDataMap();
		Integer jdId = Integer.valueOf((String) paramMap.get(QuartzContance.JOB_JDID_KEY));
		String param1 = paramMap.get(QuartzContance.JOB_PARAM_KEY1).toString();
		String param2 = paramMap.get(QuartzContance.JOB_PARAM_KEY1).toString();
		System.out.println("我只是想测试一下！！！" + "业务ID是：" + jdId+",参数1是："+param1+",参数2是："+param2);
		return true;
	}

}
